package com.zy.cat.entity.dtk.resp;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import springfox.documentation.annotations.ApiIgnore;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("大淘客商品列表实体类")
public class GoodsListResp {
	
	@JsonProperty("goods_id")
	@ApiModelProperty(value = "商品ID", example = "10010")
	private String goodsId;
	
	@JsonProperty("title")
	@ApiModelProperty(value = "淘宝标题", example = "西维里男士睡衣夏季韩版真丝短")
	private String title;

	@JsonProperty("dtitle")
	@ApiModelProperty(value = "大淘客短标题", example = "夏季睡衣男冰丝短袖丝绸家居服套装")
	private String dtitle;

	@JsonProperty("original_price")
	@ApiModelProperty(value = "商品原价", example = "23.9")
	private double originalPrice;

	@JsonProperty("actual_price")
	@ApiModelProperty(value = "券后价", example = "13.9")
	private double actualPrice;

	@JsonProperty("shop_type")
	@ApiModelProperty(value = "店铺类型，1-天猫，0-淘宝", example = "0")
	private long shopType;
	
	@ApiModelProperty(value = "店铺名称	", example = "西维里旗舰店")
	private String shopName;

	@JsonProperty("month_sales")
	@ApiModelProperty(value = "30天销量", example = "10")
	private long monthSales;

	@JsonProperty("desc")
	@ApiModelProperty(value = "商品推广文案", example = "宽松舒适，难以磨损典，雅而优美，倍感丝滑，质感优越，庄严而心仪，简约设计，色调清新脱俗，适合各种场合")
	private String desc;

	@JsonProperty("coupon_price")
	@ApiModelProperty(value = "优惠券金额", example = "10")
	private double couponPrice;

	@JsonProperty("coupon_conditions")
	@ApiModelProperty(value = "优惠券使用条件", example = "38")
	private String couponConditions;

	@JsonProperty("main_pic")
	@ApiModelProperty(value = "商品主图链接", example = "https://uland.")
	private String mainPic;

	@JsonProperty("discounts")
	@ApiModelProperty(value = "折扣力度", example = "0.75")
	private double discounts;

	@JsonProperty("fcode")
	@ApiModelProperty(value = "返利信息", example = "0")
	private long fcode;
	
//	@JsonProperty("cat")
	@ApiModelProperty(value = "一级类目id", example = "1")
	@JsonIgnore
	private String cat;

//	@JsonProperty("subcat")
	@ApiModelProperty(value = "二级类目id", example = "12")
	@JsonIgnore
	private String subcat;

//	@JsonProperty("otype")
	@ApiModelProperty(value = "排序方式(0.人气、1.最新、2.销量、3.价格（低到高）、4.价格（高到低）)", example = "0")
	@JsonIgnore
	private long otype;
	
	@JsonProperty("coupon_status")
	@ApiModelProperty(value = "是否有优惠券(0.没有、1.有)", example = "0")
	private int couponStatus;
	
	/*  
	 * 查询商品分类列表
	 */
	public GoodsListResp(String cat, String subcat, int otype) {
		this.cat=cat;
		this.subcat=subcat;
		this.otype=otype;
	}

	public GoodsListResp(String goodsId) {
		super();
		this.goodsId = goodsId;
	}
	
}
